home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group95c.txt
/
000013_icon-group-sender _Mon Sep 25 10:29:30 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1996-01-03
|
1KB
Received: by cheltenham.cs.arizona.edu; Mon, 25 Sep 1995 12:34:53 MST
Date: Mon, 25 Sep 1995 10:29:30 -0700
From: Gregg Townsend <gmt>
Message-Id: <9509251729.AA06258@hawk.CS.Arizona.EDU>
To: icon-group@cs.arizona.edu
Subject: Re: Questions on map() and /
Cc: Steve_Graham@vos.stratus.com
Errors-To: icon-group-errors@cs.arizona.edu
From: Steve_Graham@vos.stratus.com
procedure tabulate(word)
/uses[word] := table()
uses[word][lineno] := 1
return
end
What does the / in /uses mean?
It means "uses[word], if null". The first time a word is seen, a
table must be created for that word. This checks for that situation,
indicated by a null entry for uses[word], and assigns a new table
to that slot in "uses".
...
map(line) ? while tab(upto(&letters)) do {
...
What does function does map serve?
Map transliterates characters like the "tr" utility of Unix. With
default parameters, it translates upper case characters into lower case.
The purpose of this is to make the program case-insensitive.
Gregg Townsend / Computer Science Dept / Univ of Arizona / Tucson, AZ 85721
+1 520 621 4325 gmt@CS.Arizona.EDU 110 57 16 W / 32 13 45 N / +758m